﻿using System;
using System.Collections.Generic;
using System.Text;

namespace show
{
     class ComputerMajor : ICompute
        {
            public double English { get; set; }
            public double Programming { get; set; }
            public double Database { get; set; }
            int ICompute.Id { get; set; } 
         string ICompute.Name { get; set; }
          void ICompute.Total() { 
            double sum = English + Programming + Database;
            Console.WriteLine("总分数：" + sum); }
        void ICompute.Avg() {
            double avg = (English + Programming + Database) / 3; 
Console.WriteLine("平均分为：" + avg); }

        
    }
}
